﻿ 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ZK.Entity;

namespace ZK.Pack
{
    public interface IPrinter
    {

        bool IsOpen { get; set; }

      

        void Close();

        void Open();

        void WriteData(SendData sendData);

        void WriteData(string data);
        string BuildPrintData(SendData sendData);

        event  EventHandler EventHandlerReceived;

        event EventHandler  EventHandlerPrinted;

        event EventHandler  EventHandlerError;

        void WriteDataOnce(SendData sendData);
    }
}
